<html>
    <head>
        <style type="text/css">body  { font-size:12px; }</style>
        <script type="text/javascript" src="js/plugins/date.js"></script>
        <script type="text/javascript" src="js/plugins/jquery.weekcalendar.js"></script>
        <script type="text/javascript" src="js/plugins/jquery.dynatree.min.js"></script>

        <script type="text/javascript" src="js/calendar/ajax_create_client.js"></script>
        <script type="text/javascript" src="js/calendar/delete_events.js"></script>
        <script type="text/javascript" src="js/calendar/slot_popup.js"></script>
        <script type="text/javascript" src="js/calendar/week_calendar.js"></script>

        <script type="text/javascript" src="js/behaviours.js"></script>
        <script type="text/javascript" src="js/campaign.js"></script>
        <script type="text/javascript" src="js/config_functions.js"></script>
    </head>
    <body class="erra-admin-body">
    <access_control grant="!(admin:dev)">
        <center>
            <br/><br/><br/>
            <div style="width:400px;">

                <?php
                $admin_login = Erra_System_Factory::getFieldObject('Base_AdminObject', 'admin', 'CREATE')->_form('AdminAction/login');
                echo '<center>' . $admin_login . '</center>';
                ?>
            </div>
        </center>
    </access_control>

    <access_control grant="admin, dev">
        <center>
            <table><tr><td>
                <access_control grant="admin, dev">
                    <table class="erra__admin_table"><tr>
                            <td>
                                <div class="erra-admin-menu_item">
                                    <h2><?= __('Pages') ?></h2>
                                    <a href="<?= Erra_System_PageBuilder::makeLink('config') ?>"><img src="WEBROOT/__erra/images/admin/utilities.png" /></a>
                                    <br/><p><?= __('Configure URL, meta information, etc...') ?></p>
                            </td>
                            <td>
                                <div class="erra-admin-menu_item">
                                    <h2><?= __('Navigation') ?></h2>
                                    <a href="<?= Erra_System_PageBuilder::makeLink('config/navigation') ?>"><img src="WEBROOT/__erra/images/admin/menubar.png" /></a>
                                    <br/><p><?= __('Handle website navigation') ?></p>
                            </td>
                            <?php if (Erra_Core_Locale::applicationIsMultiLang()) : ?>
                                <td>
                                    <div class="erra-admin-menu_item">
                                        <h2><?= __('Translations') ?></h2>
                                        <a href="<?= Erra_System_PageBuilder::makeLink('config/localize/traduction_list') ?>"><img src="WEBROOT/__erra/images/admin/translation.png" /></a>
                                        <br/><p><?= __('Translate all data contained in __(...) tags') ?></p>
                                    </div>
                                </td>
                            <?php endif; ?>
                            <?php if (Erra_System_AccessControl::is("dev")) : ?>
                                <td>
                                    <div class="erra-admin-menu_item">
                                        <h2><?= __('Views') ?></h2>
                                        <a href="<?= Erra_System_PageBuilder::makeLink('config/views') ?>"><img src="WEBROOT/__erra/images/admin/view.png" /></a>
                                        <br/><p><?= __('Code your directly views in php/html') ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="erra-admin-menu_item">
                                        <h2><?= __('Layouts') ?></h2>
                                        <a href="<?= Erra_System_PageBuilder::makeLink('config/layouts') ?>"><img src="WEBROOT/__erra/images/admin/template.png" /></a>
                                        <br/><p><?= __('Code your layouts directly in php/html') ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="erra-admin-menu_item">
                                        <h2><?= __('Objects') ?></h2>
                                        <a href="<?= Erra_System_PageBuilder::makeLink('config/objects') ?>"><img src="WEBROOT/__erra/images/admin/objects.png" /></a>
                                        <br/><p><?= __('Code your objects directly views in php') ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="erra-admin-menu_item">
                                        <h2><?= __('Database') ?></h2>
                                        <a href="<?= Erra_System_PageBuilder::makeLink('config/sql') ?>"><img src="WEBROOT/__erra/images/admin/sql.png" /></a>
                                        <br/><p><?= __('Access to your database') ?></p>
                                    </div>
                                </td>
                                <td>
                                    <div class="erra-admin-menu_item">
                                        <h2><?= __('Backups') ?></h2>
                                        <a href="<?= Erra_System_PageBuilder::makeLink('config/backups') ?>"><img src="WEBROOT/__erra/images/admin/backup.png" /></a>
                                        <br/><p><?= __('Make backups of the application') ?></p>
                                    </div>
                                </td> 
                            <?php endif; ?>
                            <td>
                                <div class="erra-admin-menu_item">
                                    <h2><?= __('Disconnect') ?></h2>
                                    <a href="<?= Erra_System_PageBuilder::makeLink('config/disconnect') ?>"><img src="WEBROOT/__erra/images/admin/logoff.png" /></a>
                                </div>
                            </td>
                        </tr></table>
                </access_control>


                </td></tr>
                <tr><td>
                        <div class="erra__center">
                            <region name="content"></region>
                        </div>
                    </td></tr>
            </table>
        </center>
    </access_control>



</body>
</html>